import request from "/@/utils/request";

export const useSystemApi = () => {
  return {
    getRegistrationStatus: () => {
      return request({
        url: "v2/cregistration/get_registration_status",
        method: "get",
      });
    },
    getLocale: () => {
      return request({
        url: "v1/locale",
        method: "get",
      });
    },
    getVersion: () => {
      return request({
        url: "version",
        method: "get",
      });
    },
    signIn: (data: { username: string; password: string }) => {
      return request({
        url: "/user/signIn",
        method: "post",
        data,
      });
    },
  };
};
